/**
 * 
 */
package com.redside.dao;

import java.util.List;

import com.redside.model.Business;
import com.redside.view.BusinessAssociatorView;

/**
 * Business Data Access Object (DAO) interface.
 *
 * @author <a href="mailto:pchapman@easystreet.com">Peter Chapman</a>
 */
public interface BusinessDao extends GenericDao<Business, Long> {
    
    /**
     * Returns a list of Businesses based on partial 
     * search criteria
     * @param business
     * @return populated business object
     */
    public List<Business> findByAssociation(BusinessAssociatorView business);    
    
    /**
     * 
     * @return a List of Business objects by county Id, sorted
     */
    public List<Business> findByCountyIdSorted(String countyId, String[] sortOrder);
    
    /**
     * 
     * @return a List of Business objects based on
     * countyId.
     * @param id the county id.
     */
    public List<Business> findByCountyId(String id);   
}
